/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainApp.java
 *
 * Created on 08-oct-2010, 16:46:45
 */

package interfaz;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import org.jdesktop.swingx.JXCollapsiblePane;
import org.jdesktop.swingx.JXCollapsiblePane.Direction;
import org.jdesktop.swingx.JXHyperlink;
import org.jdesktop.swingx.VerticalLayout;

/**
 *
 * @author frodrig3
 */
public class PanelWelcome extends javax.swing.JPanel {
    NuMethodApp parent;
    /** Creates new form MainApp */
    public PanelWelcome(NuMethodApp parent) {
        this.parent = parent;
        initComponents();
        initComponents2();


    }


    private void initComponents2(){
        cPanelSistec.setAnimated(true);
        cPanelSistec.setDirection(Direction.DOWN);
        cPanelSistec.setCollapsed(false);
        cPanelSistec.setLayout(new FlowLayout());
        cPanelSistec.setName("Sistec");

        cPanelInt.setAnimated(true);
//        cPanelInt.setDirection(Direction.UP);
        cPanelInt.setCollapsed(false);
        cPanelInt.setLayout(new FlowLayout());
        cPanelInt.setName("Interpolacion");

        cPanelGraficas.setAnimated(true);
//        cPanelGraficas.setDirection(Direction.UP);
        cPanelGraficas.setCollapsed(false);
        cPanelGraficas.setLayout(new FlowLayout());
        cPanelGraficas.setName("Graficas");

        cPanelEcNoLineales.setAnimated(true);
//        cPanelEcNoLineales.setDirection(Direction.UP);
        cPanelEcNoLineales.setCollapsed(false);
        cPanelEcNoLineales.setLayout(new FlowLayout());
        cPanelEcNoLineales.setName("NoLineales");

        //
        cPanelGraficas.add(extPanelGraficas);
        ContainerPanelGraficas.setLayout(new VerticalLayout());
        ContainerPanelGraficas.add(cPanelGraficas);
        BotonGraficas.addActionListener(cPanelGraficas.getActionMap().get(cPanelGraficas.TOGGLE_ACTION));

        //
        cPanelEcNoLineales.add(extPanelLineales);
        ContainerPanelLineales.setLayout(new VerticalLayout());
        ContainerPanelLineales.add(cPanelEcNoLineales);
        BotonNoLineales.addActionListener(cPanelEcNoLineales.getActionMap().get(cPanelEcNoLineales.TOGGLE_ACTION));

        //
        cPanelInt.add(extPanelInt);
        ContainerPanelInt.setLayout(new VerticalLayout());
        ContainerPanelInt.add(cPanelInt);
        BotonInterpolacion.addActionListener(cPanelInt.getActionMap().get(cPanelInt.TOGGLE_ACTION));


        cPanelSistec.add(extPanelSistEc);
        ContainerPanelSistec.setLayout(new VerticalLayout());
        ContainerPanelSistec.add(cPanelSistec);
        BotonSistemasEcuaciones.addActionListener(cPanelSistec.getActionMap().get(cPanelSistec.TOGGLE_ACTION));


    }

    // <editor-fold defaultstate="collapsed" desc="HelpFul getters">


    public JXHyperlink getLinkGrafica() {
        return LinkGrafica;
    }

    public JXHyperlink getLinkGraficas() {
        return LinkGraficas;
    }

    public JXHyperlink getLinkIntGoToInt() {
        return LinkIntGoToInt;
    }

    public JXHyperlink getLinkLineales() {
        return LinkLineales;
    }

    public JXHyperlink getLinkSistEcGoToSistEc() {
        return LinkSistEcGoToSistEc;
    }// </editor-fold>

    public void setLinksColor (Color c){
        LinkGrafica.setClickedColor(c);
        LinkGrafica.setUnclickedColor(c);
        LinkGraficas.setClickedColor(c);
        LinkGraficas.setUnclickedColor(c);
        LinkIntGoToInt.setUnclickedColor(c);
        LinkIntGoToInt.setClickedColor(c);
        LinkLineales.setClickedColor(c);
        LinkLineales.setUnclickedColor(c);
        LinkSistEcGoToSistEc.setUnclickedColor(c);
        LinkSistEcGoToSistEc.setClickedColor(c);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        sPanelNoLineales = new javax.swing.JScrollPane();
        AreaNoLineales = new javax.swing.JTextArea();
        extPanelLineales = new javax.swing.JPanel();
        LinkLineales = new org.jdesktop.swingx.JXHyperlink();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        LinkGrafica = new org.jdesktop.swingx.JXHyperlink();
        extPanelGraficas = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        LinkGraficas = new org.jdesktop.swingx.JXHyperlink();
        extPanelInt = new javax.swing.JPanel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        LinkIntGoToInt = new org.jdesktop.swingx.JXHyperlink();
        extPanelSistEc = new javax.swing.JPanel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        LinkSistEcGoToSistEc = new org.jdesktop.swingx.JXHyperlink();
        jXLabel1 = new org.jdesktop.swingx.JXLabel();
        jPanel3 = new javax.swing.JPanel();
        BotonGraficas = new javax.swing.JButton();
        ContainerPanelGraficas = new javax.swing.JPanel();
        cPanelGraficas = new org.jdesktop.swingx.JXCollapsiblePane();
        jPanel2 = new javax.swing.JPanel();
        BotonInterpolacion = new javax.swing.JButton();
        ContainerPanelInt = new javax.swing.JPanel();
        cPanelInt = new org.jdesktop.swingx.JXCollapsiblePane();
        jPanel4 = new javax.swing.JPanel();
        BotonSistemasEcuaciones = new javax.swing.JButton();
        ContainerPanelSistec = new javax.swing.JPanel();
        cPanelSistec = new org.jdesktop.swingx.JXCollapsiblePane();
        jPanel1 = new javax.swing.JPanel();
        ContainerPanelLineales = new javax.swing.JPanel();
        cPanelEcNoLineales = new org.jdesktop.swingx.JXCollapsiblePane();
        BotonNoLineales = new javax.swing.JButton();

        AreaNoLineales.setColumns(20);
        AreaNoLineales.setRows(5);
        sPanelNoLineales.setViewportView(AreaNoLineales);

        extPanelLineales.setPreferredSize(new java.awt.Dimension(178, 240));

        LinkLineales.setText("Ir a Ecuaciones no Lineales");
        LinkLineales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LinkLinealesActionPerformed(evt);
            }
        });

        jLabel1.setText("Esta sección te permite");

        jLabel3.setText("a traves de diversos");

        jLabel4.setText("analizar Ecuaciones no lineales");

        jLabel2.setText("metodos numericos");

        jLabel5.setText("Quiza prefieras ver la grafica");

        jLabel6.setText("de la funcion");

        LinkGrafica.setText("Analizar grafica");
        LinkGrafica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LinkGraficaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout extPanelLinealesLayout = new javax.swing.GroupLayout(extPanelLineales);
        extPanelLineales.setLayout(extPanelLinealesLayout);
        extPanelLinealesLayout.setHorizontalGroup(
            extPanelLinealesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelLinealesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(extPanelLinealesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel4)
                    .addComponent(jLabel3)
                    .addComponent(jLabel2)
                    .addComponent(LinkLineales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addComponent(jLabel6)
                    .addComponent(LinkGrafica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        extPanelLinealesLayout.setVerticalGroup(
            extPanelLinealesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelLinealesLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LinkLineales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LinkGrafica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(43, Short.MAX_VALUE))
        );

        jLabel8.setText("Esta seccion te permite analizar");

        jLabel9.setText("el comportamiento de la grafica");

        jLabel10.setText("de la funcion que quieras analizar");

        LinkGraficas.setText("Ir a Graficas");
        LinkGraficas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LinkGraficasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout extPanelGraficasLayout = new javax.swing.GroupLayout(extPanelGraficas);
        extPanelGraficas.setLayout(extPanelGraficasLayout);
        extPanelGraficasLayout.setHorizontalGroup(
            extPanelGraficasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelGraficasLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(extPanelGraficasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addComponent(jLabel10)
                    .addComponent(LinkGraficas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );
        extPanelGraficasLayout.setVerticalGroup(
            extPanelGraficasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelGraficasLayout.createSequentialGroup()
                .addGap(72, 72, 72)
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LinkGraficas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(94, Short.MAX_VALUE))
        );

        jLabel12.setText("Esta seccion te permite estudiar");

        jLabel13.setText("el posible comportamiento de una");

        jLabel14.setText("funcion a traves de metodos de");

        jLabel15.setText("interpolacion numerica");

        LinkIntGoToInt.setText("Ir a Interpolacion");
        LinkIntGoToInt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LinkIntGoToIntActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout extPanelIntLayout = new javax.swing.GroupLayout(extPanelInt);
        extPanelInt.setLayout(extPanelIntLayout);
        extPanelIntLayout.setHorizontalGroup(
            extPanelIntLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, extPanelIntLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(extPanelIntLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel12)
                    .addComponent(jLabel13)
                    .addComponent(jLabel14)
                    .addComponent(jLabel15)
                    .addComponent(LinkIntGoToInt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        extPanelIntLayout.setVerticalGroup(
            extPanelIntLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelIntLayout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addComponent(jLabel12)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel15)
                .addGap(18, 18, 18)
                .addComponent(LinkIntGoToInt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(78, Short.MAX_VALUE))
        );

        jLabel17.setText("Esta seccion te permite estudiar");

        jLabel18.setText("sistemas de ecuaciones");

        jLabel19.setText("lineales a traves de ");

        jLabel20.setText("diversos metodos numericos");

        LinkSistEcGoToSistEc.setText("Ir a Sistemas de Ecuaciones");
        LinkSistEcGoToSistEc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LinkSistEcGoToSistEcActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout extPanelSistEcLayout = new javax.swing.GroupLayout(extPanelSistEc);
        extPanelSistEc.setLayout(extPanelSistEcLayout);
        extPanelSistEcLayout.setHorizontalGroup(
            extPanelSistEcLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelSistEcLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(extPanelSistEcLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel17)
                    .addComponent(jLabel18)
                    .addComponent(jLabel19)
                    .addComponent(jLabel20)
                    .addComponent(LinkSistEcGoToSistEc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(17, Short.MAX_VALUE))
        );
        extPanelSistEcLayout.setVerticalGroup(
            extPanelSistEcLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(extPanelSistEcLayout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addComponent(jLabel17)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel18)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel19)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel20)
                .addGap(18, 18, 18)
                .addComponent(LinkSistEcGoToSistEc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(78, Short.MAX_VALUE))
        );

        setToolTipText("Este es NuMethod. Software para la aplicación y resolución de métodos numéricos.");
        setPreferredSize(new java.awt.Dimension(900, 573));

        jXLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/Nu-Method-Logo -reduced - final.JPG"))); // NOI18N
        jXLabel1.setText("Bienvenido a Nu-Met#od");
        jXLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jXLabel1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        BotonGraficas.setBackground(new java.awt.Color(120, 142, 224));
        BotonGraficas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/Icons16/agt_action_success.png"))); // NOI18N
        BotonGraficas.setText("Graficas");
        BotonGraficas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonGraficasActionPerformed(evt);
            }
        });

        cPanelGraficas.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout ContainerPanelGraficasLayout = new javax.swing.GroupLayout(ContainerPanelGraficas);
        ContainerPanelGraficas.setLayout(ContainerPanelGraficasLayout);
        ContainerPanelGraficasLayout.setHorizontalGroup(
            ContainerPanelGraficasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelGraficas, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)
        );
        ContainerPanelGraficasLayout.setVerticalGroup(
            ContainerPanelGraficasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelGraficas, javax.swing.GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(BotonGraficas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)
                    .addComponent(ContainerPanelGraficas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BotonGraficas)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ContainerPanelGraficas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        BotonInterpolacion.setBackground(new java.awt.Color(120, 142, 224));
        BotonInterpolacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/Icons16/agt_update_critical.png"))); // NOI18N
        BotonInterpolacion.setText("Interpolacion");
        BotonInterpolacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonInterpolacionActionPerformed(evt);
            }
        });

        cPanelInt.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout ContainerPanelIntLayout = new javax.swing.GroupLayout(ContainerPanelInt);
        ContainerPanelInt.setLayout(ContainerPanelIntLayout);
        ContainerPanelIntLayout.setHorizontalGroup(
            ContainerPanelIntLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelInt, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
        );
        ContainerPanelIntLayout.setVerticalGroup(
            ContainerPanelIntLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelInt, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(BotonInterpolacion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                    .addComponent(ContainerPanelInt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BotonInterpolacion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ContainerPanelInt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        BotonSistemasEcuaciones.setBackground(new java.awt.Color(120, 142, 224));
        BotonSistemasEcuaciones.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/Icons16/agt_multimedia.png"))); // NOI18N
        BotonSistemasEcuaciones.setText("Sistemas de Ecuaciones");
        BotonSistemasEcuaciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonSistemasEcuacionesActionPerformed(evt);
            }
        });

        cPanelSistec.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout ContainerPanelSistecLayout = new javax.swing.GroupLayout(ContainerPanelSistec);
        ContainerPanelSistec.setLayout(ContainerPanelSistecLayout);
        ContainerPanelSistecLayout.setHorizontalGroup(
            ContainerPanelSistecLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelSistec, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
        );
        ContainerPanelSistecLayout.setVerticalGroup(
            ContainerPanelSistecLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ContainerPanelSistecLayout.createSequentialGroup()
                .addComponent(cPanelSistec, javax.swing.GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(ContainerPanelSistec, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BotonSistemasEcuaciones, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BotonSistemasEcuaciones)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ContainerPanelSistec, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        cPanelEcNoLineales.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout ContainerPanelLinealesLayout = new javax.swing.GroupLayout(ContainerPanelLineales);
        ContainerPanelLineales.setLayout(ContainerPanelLinealesLayout);
        ContainerPanelLinealesLayout.setHorizontalGroup(
            ContainerPanelLinealesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelEcNoLineales, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
        );
        ContainerPanelLinealesLayout.setVerticalGroup(
            ContainerPanelLinealesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cPanelEcNoLineales, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)
        );

        BotonNoLineales.setBackground(new java.awt.Color(120, 142, 224));
        BotonNoLineales.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/Icons16/idea.png"))); // NOI18N
        BotonNoLineales.setText("Ecuaciones No Lineales");
        BotonNoLineales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonNoLinealesActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(BotonNoLineales, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(ContainerPanelLineales, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BotonNoLineales)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ContainerPanelLineales, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(118, 118, 118)
                        .addComponent(jXLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(14, 14, 14)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(86, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jXLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void cPanelNoLinealesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cPanelNoLinealesMouseEntered

    }//GEN-LAST:event_cPanelNoLinealesMouseEntered

    private void cPanelNoLinealesMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cPanelNoLinealesMouseExited
    }//GEN-LAST:event_cPanelNoLinealesMouseExited

    private void BotonSistemasEcuacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonSistemasEcuacionesActionPerformed
        //cPanelNoLineales.setCollapsed(false);
    }//GEN-LAST:event_BotonSistemasEcuacionesActionPerformed

    private void BotonInterpolacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonInterpolacionActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_BotonInterpolacionActionPerformed

    private void BotonGraficasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonGraficasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_BotonGraficasActionPerformed

    private void LinkLinealesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LinkLinealesActionPerformed
        this.parent.getPanelMain().cardChanger(PanelMain.ECUACIONES);
        this.parent.getPanelMain().getTaskPaneInterpolacion().setCollapsed(true);
        this.parent.getPanelMain().getTaskPaneSisEcuaciones().setCollapsed(true);
        this.parent.getPanelMain().getTaskPaneNoLineales().setCollapsed(false);

        this.parent.panelChanger(NuMethodApp.MAIN);
    }//GEN-LAST:event_LinkLinealesActionPerformed

    private void LinkGraficaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LinkGraficaActionPerformed
        this.parent.panelChanger(NuMethodApp.GRAFICAS);
    }//GEN-LAST:event_LinkGraficaActionPerformed

    private void LinkGraficasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LinkGraficasActionPerformed
        this.parent.panelChanger(NuMethodApp.GRAFICAS);
    }//GEN-LAST:event_LinkGraficasActionPerformed

    private void LinkSistEcGoToSistEcActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LinkSistEcGoToSistEcActionPerformed
        this.parent.getPanelMain().cardChanger(PanelMain.MATRICES);
        this.parent.getPanelMain().getTaskPaneInterpolacion().setCollapsed(true);
        this.parent.getPanelMain().getTaskPaneSisEcuaciones().setCollapsed(false);
        this.parent.getPanelMain().getTaskPaneNoLineales().setCollapsed(true);

        this.parent.panelChanger(NuMethodApp.MAIN);
    }//GEN-LAST:event_LinkSistEcGoToSistEcActionPerformed

    private void BotonNoLinealesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonNoLinealesActionPerformed
        
}//GEN-LAST:event_BotonNoLinealesActionPerformed

    private void LinkIntGoToIntActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LinkIntGoToIntActionPerformed
        this.parent.getPanelMain().cardChanger(PanelMain.INTERPOLACION);
        this.parent.getPanelMain().getTaskPaneInterpolacion().setCollapsed(false);
        this.parent.getPanelMain().getTaskPaneSisEcuaciones().setCollapsed(true);
        this.parent.getPanelMain().getTaskPaneNoLineales().setCollapsed(true);

        this.parent.panelChanger(NuMethodApp.MAIN);
    }//GEN-LAST:event_LinkIntGoToIntActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea AreaNoLineales;
    private javax.swing.JButton BotonGraficas;
    private javax.swing.JButton BotonInterpolacion;
    private javax.swing.JButton BotonNoLineales;
    private javax.swing.JButton BotonSistemasEcuaciones;
    private javax.swing.JPanel ContainerPanelGraficas;
    private javax.swing.JPanel ContainerPanelInt;
    private javax.swing.JPanel ContainerPanelLineales;
    private javax.swing.JPanel ContainerPanelSistec;
    private org.jdesktop.swingx.JXHyperlink LinkGrafica;
    private org.jdesktop.swingx.JXHyperlink LinkGraficas;
    private org.jdesktop.swingx.JXHyperlink LinkIntGoToInt;
    private org.jdesktop.swingx.JXHyperlink LinkLineales;
    private org.jdesktop.swingx.JXHyperlink LinkSistEcGoToSistEc;
    private org.jdesktop.swingx.JXCollapsiblePane cPanelEcNoLineales;
    private org.jdesktop.swingx.JXCollapsiblePane cPanelGraficas;
    private org.jdesktop.swingx.JXCollapsiblePane cPanelInt;
    private org.jdesktop.swingx.JXCollapsiblePane cPanelSistec;
    private javax.swing.JPanel extPanelGraficas;
    private javax.swing.JPanel extPanelInt;
    private javax.swing.JPanel extPanelLineales;
    private javax.swing.JPanel extPanelSistEc;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private org.jdesktop.swingx.JXLabel jXLabel1;
    private javax.swing.JScrollPane sPanelNoLineales;
    // End of variables declaration//GEN-END:variables

    public static void main(String[] args) {
            JFrame m = new JFrame();
        m.setTitle("2");
        m.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        PanelWelcome o = new PanelWelcome(null);

        m.add(o);
        m.pack();

        m.setVisible(true);
    }
}
